<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>循环</title>
</head>
<body>
        <script>

            var i = 0;
            while(i<20){

                console.log(i);
                i++

            }
        </script>
</body>
</html>